 <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>记录</title>
        <link rel="stylesheet" href="../static/layui/css/layui.css">
        <link rel="stylesheet" href="../static/xznstatic/css/common.css"/>
        <link rel="stylesheet" href="../static/xznstatic/css/style.css"/>
        <link rel="stylesheet" href="../static/css/bootstrap.css">
        <link href="../static/css/bootstrap.min.css" rel="stylesheet">
        <link href="../static/css/materialdesignicons.min.css" rel="stylesheet">
        <link href="../static/css/style.min.css" rel="stylesheet">
        <script src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script>
        <link rel="stylesheet" type="text/css" href="../static/css/demo.css" />
        <link rel="stylesheet" type="text/css" href="../static/css/style1.css" />
    </head>
    <style type="text/css">
        /* 	html, body {
                height: 100%;
            } */

        #iframe {
            width: 100%;
            margin-top: 50px;
            padding-top: 94px;
        }
        #header {
            height: auto;
            background: #fff;
            border-bottom: 0;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
        }

        #header .nav-top {
            display: flex;
            align-items: center;
            padding: 0 20px;
            font-size: 16px;
            color: #2a8a15;
            box-sizing: border-box;
            height: 50px;
            background-color: rgba(255, 120, 0, 1);
            box-shadow: 0 0 20px #e88a64;
            justify-content: center;
            position: relative;
        }

        #header .nav-top-title {
            line-height: 40px;
            font-size: 20px;
            color: rgba(255, 255, 255, 1);
            padding: 0 10px;
            margin: 0 10px;
            border-radius: 0px;
            border-width: 0;
            border-style: solid;
            border-color: rgba(0,0,0,.3);

        }
        #header .nav-top-tel {
            line-height: 40px;
            font-size: 16px;
            color: #333;
            padding: 0 10px;
            margin: 0;
            border-radius: 6px;
            border-width: 0;
            border-style: solid;
            border-color: rgba(0,0,0,.3);

        }

        #header .navs {
            display: flex;
            padding: 0 20px;
            align-items: center;
            box-sizing: border-box;
            height: 94px;
            background-color: rgba(255, 248, 239, 1);
            box-shadow: 0 1px 6px rgba(0,0,0,0);
            justify-content: center;
        }
        #header .navs .title {
            width: auto;
            line-height: 40px;
            font-size: 16px;
            color: #333;
            padding: 0 10px;
            margin: 0 5px;
            border-radius: 6px;
            border-width: 0;
            border-style: solid;
            border-color: rgba(0,0,0,.3);
            box-shadow: 0 0 6px rgba(0,0,0,0);
        }
        #header .navs li {
            display: inline-block;
            width: auto;
            line-height: 34px;
            padding: 0 10px;
            margin: 0 5px;
            color: #333;
            font-size: 20px;
            border-radius: 6px;
            border-width: 0;
            border-style: solid;
            border-color: rgba(0,0,0,.3);
            background-color: rgba(255, 248, 239, 1);
            box-shadow: 0 0;
            text-align: center;
        }
        #header .navs li a{
            color: inherit;
        }
        #header .navs li.current a{
            color: inherit;
        }
        #header .navs li a:hover{
            color: inherit;
        }
        #header .navs li.current {
            color: rgba(226, 81, 17, 1);
            font-size: 20px;
            border-radius: 0px;
            border-width: 0;
            border-style: solid;
            border-color: rgba(255, 255, 255, 1);
            background-color: rgba(255, 248, 239, 1);
            box-shadow: 0 2px 0px #e25111;
        }


    </style>
<body>

<!-- start 顶部导航栏 -->
<div id="header">
    <div v-if='true' class="nav-top">

        <div v-if="true" class="nav-top-title">智能车险投保系统</div>
        <div class="nav-top-tel"></div>
    </div>
    <div class="navs">
        <!-- <div class="logo" style="font-size: 20px;top: 32px;color: #fff;font-weight: bold;margin-left: -200px;width: 240px;" v-text="projectName"></div> -->
        <div class="title" v-if="false" v-text="projectName"></div>
        <div class="list">
            <ul>
                <li ><a th:href="@{shouye}"><i v-if="false" class="layui-icon layui-icon-home"></i>首页</a></li>
                <li class='current'><i v-if="false" class="layui-icon layui-icon-list"></i>历史记录</a></li>
                <li ><a th:href="@{look}" target="jj"><i v-if="false" class="layui-icon layui-icon-cart"></i>汽车保险</a></li>
                <li ><a th:href="@{fuwudating}"  ><i v-if="false" class="layui-icon layui-icon-util"></i>服务大厅</a></li>
                <li ><a th:href="@{personal}" target="jj" ><i v-if="false" class="layui-icon layui-icon-username"></i>个人中心</a>
                </li>
            </ul>
        </div>
    </div>

<!-- 为ECharts准备一个具备大小（宽高）的Dom -->
<div id="main" style="width:100%;height:600px;"></div>
<script type="text/javascript">
    // 基于准备好的dom，初始化echarts实例
    var myChart = echarts.init(document.getElementById('main'));


    setTimeout(function () {

        option = {
            //标题
            title:{
                text:'车险种类购买图',//标题内容
                x:'center',//水平安放位置，默认为左对齐，可选为“center”，“left”，“right”,以及是具体的数值，单位是px
                y:'bottom'//垂直安放位置，默认为全图顶端，可选'top' ¦ 'bottom' ¦ 'center'，以及是具体的数值，单位是px
            },
            //图例
            legend: {
            },

            //提示框
            tooltip: {
                trigger: 'axis',//触发类型，默认数据触发，可选为item和axis
                showContent: false
            },
            dataset: {
                source: [
                    ['product', '2012', '2013', '2014', '2015', '2016', '2017'],
                    ['盗抢险', 41.1, 30.4, 65.1, 53.3, 83.8, 98.7],
                    ['交强险', 86.5, 92.1, 85.7, 83.1, 73.4, 55.1],
                    ['第三责任险', 24.1, 67.2, 79.5, 86.4, 65.2, 82.5],
                    ['车损险', 55.2, 67.1, 69.2, 72.4, 53.9, 39.1],
                    ['机动车车上人员责任险（司机）', 65.2, 57.1, 69.2, 67.4, 58.9, 49.1],
                    ['机动车车上人员责任险（乘客）', 45.2, 77.1, 79.2, 74.4,48.9, 29.1]
                ]
            },
            xAxis: {type: 'category'},
            yAxis: {gridIndex: 0},
            grid: {top: '55%'},
            series: [
                {type: 'line', smooth: true, seriesLayoutBy: 'row'},
                {type: 'line', smooth: true, seriesLayoutBy: 'row'},
                {type: 'line', smooth: true, seriesLayoutBy: 'row'},
                {type: 'line', smooth: true, seriesLayoutBy: 'row'},
                {type: 'line', smooth: true, seriesLayoutBy: 'row'},
                {type: 'line', smooth: true, seriesLayoutBy: 'row'},
                {
                    type: 'pie',
                    id: 'pie',
                    radius: '30%',
                    center: ['50%', '25%'],
                    label: {
                        formatter: '{b}: {@2012} ({d}%)'
                    },
                    encode: {
                        itemName: 'product',
                        value: '2012',
                        tooltip: '2012'
                    }
                }
            ]
        };

        myChart.on('updateAxisPointer', function (event) {
            var xAxisInfo = event.axesInfo[0];
            if (xAxisInfo) {
                var dimension = xAxisInfo.value + 1;
                myChart.setOption({
                    series: {
                        id: 'pie',
                        label: {
                            formatter: '{b}: {@[' + dimension + ']} ({d}%)'
                        },
                        encode: {
                            value: dimension,
                            tooltip: dimension
                        }
                    }
                });
            }
        });

        myChart.setOption(option);

    });
</script>
</script>
</div>
</body>
</html>
